package chain;

public abstract class SafetyHandler {
    protected SafetyHandler nextHandler;

    public SafetyHandler setNext(SafetyHandler handler) {
        this.nextHandler = handler;
        return handler;
    }

    public abstract void handle(String event);
}
